<div class="hd-20160428 w1200">
    <div class="top-baaner">
      <img class="lazy img-center" src="./images/201604281.jpg">
    </div>
    <div class="w1000 hd-product-list">
      <div class="display" id="display1">
        <h2>Robot de limpieza</h2>
        <p class="subtitle"> ¡Que tengas las manos libres!<br>¡Tomémonos un selfie! Querida mamá.</p>
        <ul class="display-list1 lists-6 clearfloat"></ul>
      </div>
      
      <div class="display" id="display2">
        <h2>Limpieza facial casera</h2>
        <p class="subtitle"> -- Espejito, espejito, ¿Quién es la más bonita?<br>-- Mi mamá.</p>
        <ul class="display-list1 display-list2 lists-7-2 clearfloat"></ul>
      </div>

      <div class="display" id="display3">
        <h2>Gadgets deportivos</h2>
        <p class="subtitle">Mamá, tu salud es lo más importante</p>
        <ul class="display-list1 lists-8 clearfloat"></ul>
      </div>

      <div class="display" id="display4">
        <h2>Cocinas</h2>
        <p class="subtitle">Mamá, ¡eres la mejor cocinera en el mundo!</p>
         <ul class="display-list1 lists-8 clearfloat"></ul>
      </div>

      <div class="display" id="display5">
        <h2>Mamá, ¡ te merece lo mejor !</h2>
        <ul class="control-list">
          <li class="active">Móviles de Xiaomi</li>
          <li style="width:340px;">Móviles-otras marcas ¡ Desde <b>58.99€</b>!</li>
        </ul>
        <div class="display-tab">
          <div class="display-show active">
            <ul class="display-list1 lists-7 clearfloat"></ul>
          </div>
          <div class="display-show">
            <ul class="display-list1 lists-8 clearfloat"></ul>
          </div>
        </div>
        
      </div>
      
      <div class="display" id="display6">
        <h2>Gadgets sexuales para mujeres</h2>
         <p class="subtitle">¡Que sea como una oveja en la cocina y un tigre en la cama!</p>
        <ul class="display-list1 lists-4 clearfloat"> </ul>
      </div>

    </div>
    <div class="panel-layout">
      <ul>
        <li><a href="#display1">Robot de limpieza </a></li>
        <li><a href="#display2">Máquina de limpieza facial </a></li>
        <li><a href="#display3">Gadgets deportivos </a></li>
        <li><a href="#display4">Sartén y olla</a></li>
        <li><a href="#display5">Móviles baratos</a></li>
        <li><a href="#display6">Gadgets sexuales</a></li>
      </ul>
    </div>   
  </div>
<style>
  .clear {clear: both;}
  .top-baaner {width: 100%;text-align: center;}
  .hd-product-list .subtitle {font-size: 22px;color:#333;font-weight: lighter;}
  .hd-product-list .display {margin: 80px 0;text-align:center;}
  .hd-product-list .product-info {padding: 0px 10px;}
  .display-list1 {margin-top:35px;}
  .display-list1 li {width: 239px;height: 320px;overflow: hidden;float: left;text-align: center;border: 1px solid #f29c9f;margin:0 10px 10px 0;-webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease;}
  .display-list1 li:hover {border-color:#DCD2D2; transform: translateY(-6px); -webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);box-shadow: 0px 0px 16px #b5b3b3;-webkit-box-shadow: 0px 0px 16px #b5b3b3;-o-box-shadow: 0px 0px 16px #b5b3b3;-ms-box-shadow: 0px 0px 16px #b5b3b3;-moz-box-shadow: 0px 0px 16px #b5b3b3;}
  .display-list1.display-list2 li {width: 321px;margin-right: 10px;height: 390px;}
  .display-list1 li.product-gift {border: none;width:738px; }
  .display-list1.display-list2 .product-gift1 {width: 991px;height: 230px;border: none;}
  .product-gift-area1 {width: 660px;height: 220px;background: url(./images/2016042817.jpg)no-repeat;margin: 0px auto;position: relative;}
  .product-gift-area1 .text {font-size: 18px;color:#e31e30;width: 52%;padding-top: 60px;margin:0px auto;}
  .display-list1 li:nth-child(4n+4) {margin-right: 0px;}
  .hd-product-list .display h2 {font-size: 45px; color: #E31E30; margin-bottom: 10px;}
  .display-list1 .info {font-size: 13px; color: #333; line-height: 15px; margin: 10px 0 0px; height: 32px; overflow: hidden; padding: 0px 10px;}
  .display-list1 .old-price {font-size:13px;color:#333;text-decoration: line-through;text-align: left;margin:0px;}
  .display-list1 .new-price {color:#e31e30;font-size: 25px;font-weight: bold;text-align: left;}
  .display-list1 .product-img {width: 95%; margin-top: 10px;}
  #display6 .display-list1 li {height:350px;}
  #display6 .display-list1 .product-img {width:100%;margin-top:0;}
  li.product-gift .text {font-size: 24px;color:#e31e30;margin-top: 50px;}
  li.product-gift .product-gift-area {background: url(./images/201604289.jpg)no-repeat;width: 470px;height: 200px;margin-left: 125px;}
  .product-gift .product-gift-area img {margin-top: 45px;}
  .product-gift-area1 .product-absolute {position: absolute;right: 30px;bottom: 12px;}
  .product-gift-area2 {background: url(./images/2016042839.jpg)no-repeat;height: 270px;margin-top: 30px;}
  .product-gift-area2 .text {padding-top: 45px;font-size: 14px;line-height: 18px;word-spacing: -2px;width: 72%;float: right;}
  .control-list li {width: 230px;font-size: 18px;color: #eeeeee;background: #ff5070;padding: 10px 0px;display: inline-block;margin: 20px 25px;}
  .control-list li.active {background: #e31e30;}
  .display-tab .display-show {display: none;}
  .display-tab .display-show.active{display: block;}
  .panel-layout{background: url(./images/2016042812.png)no-repeat;width: 200px;height: 355px;position: fixed;top: 0;margin-left: 1105px;display: none;}
  .panel-layout ul li{margin-bottom: 15px;list-style: none;}
  .panel-layout ul{margin-top: 96px;}
  .panel-layout ul li a{display: block; height: 26px; width: 100%;color:#fff;font-size: 13px;text-align: center;}
  .panel-layout ul li.current a,.panel-layout ul li:hover a {color:yellow;}
</style>
<script type="text/javascript" charset="utf-8">
 (function($){
      var str1 = '', str2 = '', str3 = '',str4 = '', str5 = '';
      var str2_1 = ` <li>
                <a href="#"><img class="product-img" src="./images/2016040616.jpg" alt="XIAOMI Redmi 2 Pro 2GB 16GB Negro"></a>
                <p class="info">XIAOMI Redmi 2 Pro 2GB 16GB Negro</p>
                <div class="product-info clearfloat">
                  <div class="price-area l">
                    <p class="old-price">149.99€</p>
                    <p class="new-price">124.99€</p>
                  </div>
                  <div class="btn-action r">
                    <a class="btn-buy" href="#"><img class="btn-bg" src="./images/201604288.jpg"></a>
                  </div>
                </div>
              </li>`;
      for(var i = 0; i < 4; i++){
          str1 +=  `<li>
              <a href="#"><img class="product-img" src="./images/2016042843.jpg" alt="TENGA IROHA MIDORI"></a>
              <p class="info">TENGA IROHA MIDORI</p>
              <div class="product-info clearfloat">
                <div class="price-area l">
                  <p class="old-price">69.99€</p>
                  <p class="new-price">64.99€</p>
                </div>
                <div class="btn-action r">
                  <a class="btn-buy" href="#"><img class="btn-bg" src="./images/201604288.jpg"></a>
                </div>
              </div>
            </li>`;
      }
      $(".lists-4").append(str1);
      for(var i = 0; i < 7; i++){
        if(i == 6){
          str2 += `<li class="product-gift2" style="width: 495px;margin-right: 0px;">
              <div class="product-gift-area2 clearfloat">
                <p class="text">Se regalará anillos hasta fin de existencias<br>Para quien compre móviles de Xiaomi</p>
                <a href="#" class="l" style="margin-left:130px;margin-top: 45px;"><img src="./images/2016042841.jpg" alt="Xiaomi Anillo anti-caída rotación 360° soporte del móvil Rosado"></a>
                <a href="#" class="r" style="margin-right: 80px;margin-top: 45px;"><img src="./images/2016042841.jpg" alt="Xiaomi Anillo anti-caída rotación 360° soporte del móvil Dorado"></a>
              </div>
            </li>`;
        }else{
          str2 += str2_1;
          
        }
        
      }
      $(".lists-7").append(str2);
      for(var i = 0; i < 7; i++){
        if(i == 3){
          str4 +=  `<li class="product-gift1">
            <div class="product-gift-area1">
              <p class="text">Se regalará un espejo de maquillaje hasta fin de existencias <br>si compra la máquina de limpieza facial</p>
              <a href="3" class="product-absolute"><img src="./images/2016042818.jpg" alt="Espejo de maquillaje con LED flash"></a>
            </div>
          </li>`;
        }else{
          str4 += str2_1;
        }
        
      }
      $(".lists-7-2").append(str4);
      for(var i = 0; i < 8; i++){
        str3 += str2_1;
      }
      $(".lists-8").append(str3);
      for(var i = 0; i < 6; i++){
        if(i == 5){
          str5 += `<li class="product-gift">
            <p class="text">Se regalará un robot de selfie hasta fin de existencias <br>para quien compre el robot de limpieza.</p>
            <div class="product-gift-area clearfloat">
              <a href="#" class="l" style="margin-left: 80px;"><img src="./images/2016042810.jpg" alt="QINAIPAI AIP1-1 Selfie Robot Negro"></a>
              <a href="#" class="r" style="margin-right: 50px;"><img src="./images/2016042810.jpg" alt="QINAIPAI AIP1-1 Selfie Robot Blanco"></a>
            </div>
          </li>`;
        }else{
          str5 += str2_1;
        }
        
      }
      $(".lists-6").append(str5);
      $(".control-list li").hover(function(){
        var indexThis = $(this).index();
         $(".control-list li").removeClass("active").eq(indexThis).addClass("active");
         $(".display-tab .display-show").removeClass("active").eq(indexThis).addClass("active");
      });

      var sideNav = $(".panel-layout");
      $(window).on("scroll",function(){
        var sideNavShow = $(".top-baaner").offset().top + $(".top-baaner").outerHeight(true);
        var modTop = [];
        if($(this).scrollTop()>=sideNavShow){
          sideNav.show();
        }
        else{
          sideNav.hide();
        }

         /*滚动到哪个地方，相应的对方变换样式*/
      for (var i = 0; i < $(".panel-layout ul li").length; i++) {
        modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top;

        if ($(window).scrollTop() >= modTop[i]) {
          $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
        };
      };

        
      });
      
      sideNav.find("li").find("a").on("click",function(e){
        e.preventDefault();
        var aHash = this.hash;
        $("html,body").animate({
          scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top
        });
      });
   })(jQuery);   
</script>